transcript on
if {[file exists rtl_work]} {
	vdel -lib rtl_work -all
}
vlib rtl_work
vmap work rtl_work

vlog -vlog01compat -work work +incdir+C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL {C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL/PWM_COUNTER.v}
vlog -vlog01compat -work work +incdir+C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL {C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL/PWM_COMPARATOR.v}
vlog -vlog01compat -work work +incdir+C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL {C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL/PWM_TOP.v}
vlog -vlog01compat -work work +incdir+C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL {C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL/frequency_divider.v}

vlog -vlog01compat -work work +incdir+C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL/simulation/modelsim {C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL/simulation/modelsim/PWM_TOP.vt}

vsim -t 1ps -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L altera_lnsim_ver -L cycloneiii_ver -L rtl_work -L work -voptargs="+acc"  PWM_TOP_vlg_tst

do C:/Users/Administrator/Desktop/final/4_PWM/PWM_VerilogHDL/simulation/modelsim/PWM_TOP.do
